﻿<UserControl x:Class="UI.Module.Admin.ProfilsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.Resources>
            <xcdg:DataGridCollectionViewSource x:Key="cvsUsers" Source="{Binding Path=Users}">
                <xcdg:DataGridCollectionViewSource.GroupDescriptions>
                    <PropertyGroupDescription PropertyName="ProfilId" />
                    <PropertyGroupDescription PropertyName="ProfilLabel" />
                </xcdg:DataGridCollectionViewSource.GroupDescriptions>
            </xcdg:DataGridCollectionViewSource>
        </Grid.Resources>
        <xcdg:DataGridControl ItemsSource="{Binding Source={StaticResource cvsUsers} }" >
            <xcdg:DataGridControl.View>
                <xcdg:TableflowView FixedColumnCount="2" />
            </xcdg:DataGridControl.View>
        </xcdg:DataGridControl>
        <!--<ig:XamGrid Margin="5"
                    ItemsSource="{Binding Path=Users, Mode=OneWay}"
                    HorizontalAlignment="Stretch"
                    AutoGenerateColumns="False">
            <ig:XamGrid.EditingSettings>
                <ig:EditingSettings AllowEditing="None"/>
            </ig:XamGrid.EditingSettings>
            <ig:XamGrid.RowSelectorSettings>
                <ig:RowSelectorSettings Visibility="Visible" EnableRowNumbering="True"/>
            </ig:XamGrid.RowSelectorSettings>
            <ig:XamGrid.FilteringSettings>
                <ig:FilteringSettings AllowFiltering="FilterRowTop" FilteringScope="ColumnLayout" />
            </ig:XamGrid.FilteringSettings>
            <ig:XamGrid.SelectionSettings>
                <ig:SelectionSettings RowSelection="Single" CellClickAction="SelectRow" CellSelection="None" ColumnSelection="None" />
            </ig:XamGrid.SelectionSettings>
            <ig:XamGrid.Columns>
                <ig:TextColumn Key="ProfilId" HeaderText="Id" AllowToolTips="Always"/>
                <ig:TextColumn Key="ProfilLabel" HeaderText="Description" AllowToolTips="Always"/>
            </ig:XamGrid.Columns>
        </ig:XamGrid>-->
    </Grid>

</UserControl>
